import docx

def get_docx(file_name):
    d = docx.opendocx(file_name)
    doc = docx.getdocumenttext(d)
    return doc

doc = get_docx('SHIVS-OMS-DMS-V2.1-新特性列表.doc')
print(doc)  # 输出行数：1075
for d in doc[:5]:
    if "刘嘉伟" in d:
	    print("ok")
   # print(d) # 打印前5行
